package com.hs.mapper;

import com.hs.entity.Answer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AnswerMapper {
    int addAnswer(Answer answer);
    int deleteAnswer(int id);
    int updateAnswer(Answer answer);
    Answer getAnswerById(int id);
    List<Answer> getAnswerByPage();
}
